<%-- 
    Document   : historique
    Created on : 15 mai 2014, 23:43:49
    Author     : user
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>historique</title>
    </head>   
   
    
    <body>
        <h1>Liste des méthodes utilisées sur les serveurs RMI </h1>
        
         <%  try{
            if(request.getAttribute("error")!=null)
                   out.print(((String)request.getAttribute("error")));
                   request.removeAttribute("error");
             if(request.getAttribute("info")!=null)
                   out.print(((String)request.getAttribute("info")));
                   request.removeAttribute("info");
            }catch  (Exception ex){
            
            }   
    
    %>
        <form action="/Phase4-IHM/afficherHistorique" method="POST">
        <select name="historique" size="1">		    
                    <%
                        if (((String) request.getAttribute("historique")) == null) {

                        } else {
                            String[] temp = ((String) request.getAttribute("historique")).split(";");
                            for (int i = 0; i < temp.length; i++) {
                                out.println("<option> " + temp[i]);
                            }
                        }

                    %>               
                    
                    
                </select>   
        <button type="submit">Afficher</button>
        </form>  
                
        <form action="/Phase4-IHM/suppressionLog" method="GET">
            <button type="submit">Clear LOG</button>
        </form>        
        
        <form action="/Phase4-IHM/dispatcheur" method="GET">
            <button type="submit">Retour</button>
        </form>        
	
	 <form action="/Phase4-IHM/deconnexion" method="GET">
            <button type="submit">Déconnexion</button>
        </form>
        
    </body>
</html>
